<template>
  <div class="home" :style="cssWidth < 1920 ? 'height:' + (cssHeight-50) + 'px; overflow-y: auto;' : 'height:100%'">
    <div class="screen" :style="cssWidth > 1650 || !sidebar.opened ? 'width: 8.2292rem' : ''">

      <div style="display: flex;justify-content: space-between;">
        <div class="box-card">
          <div style="font-size: 20px;font-weight: 600;">
            <span>数据概述</span>
          </div>
          <div class="time-list">
              <div @click="handleDay(item.day)" class="time-item" :style="weekDay == item.day  ? 'color:rgba(128, 130, 255, 1);background: rgba(128, 130, 255, 0.1);': ''" v-for="(item,index) in weekArr" :key="index">
                <div class="time-week">周{{item.week == 1 ? '一' : item.week == 2 ? '二' : item.week == 3 ? '三' : item.week == 4 ? '四' : item.week == 5 ? '五' : item.week == 6 ? '六' : '日'}}</div>
                <div class="time-day">{{item.day}}</div>
              </div>
          </div>
          <div class="chart">
            <div id="myChart" :style="{width: '100%', height: '100%'}"></div>
          </div>
        </div>
        <div style="height: 1.8438rem;;width: 3.7865rem;">
              <div class="statistics">
                <div class="week-flowing">
                  <div style="color: #ADABAB;line-height: 28px;font-size: 20px;">今日流水</div>
                  <div style="color: #333333;line-height: 0px;margin:0.1875rem 0 0.1563rem;display: inline-block;position: relative;" class="fz">
                    {{statisticalData.todayIncome}}
                    <!-- <span style="position: absolute;right:0;top:-26px;color: #00B36F;font-size: 14px;">+4.12%</span> -->
                  </div>
                  <div style="color: #ADABAB;line-height: 20px;font-size: 14px;">{{statisticalData.todayTradeNum}}/笔</div>
                  <el-tooltip class="item" effect="dark" placement="top-start">
                    <div slot="content">支付宝：{{statisticalData.todayAliPaySuccessRate}}<br/>微信：{{statisticalData.todayWxPaySuccessRate}}</div>
                    <div :class="statisticalData.todaySuccessRate > 60 ? 'progre' : 'progre-yes'">
                        <el-progress type="circle" :percentage="statisticalData.todaySuccessRate" :width="80" :color="statisticalData.todaySuccessRate > 60 ?
                          '#00B36B' : 'rgba(255, 130, 0, 1)'">
                      </el-progress>
                    </div>
                  </el-tooltip>
                </div>
                <div class="week-flowing">
                  <div style="color: #ADABAB;line-height: 28px;font-size: 20px;">昨日流水</div>
                  <div style="color: #333333;line-height: 0px;margin:0.1875rem 0 0.1563rem;display: inline-block;position: relative;" class="fz">
                    {{statisticalData.yesterdayIncome}}
                    <!-- <span style="position: absolute;right:0;top:-26px;color: #FD2A2A;font-size: 14px;">+4.12%</span> -->
                  </div>
                  <div style="color: #ADABAB;line-height: 20px;font-size: 14px;">{{statisticalData.yesterdayTradeNum}}/笔</div>
                  <el-tooltip class="item" effect="dark" placement="top-start">
                    <div slot="content">支付宝：{{statisticalData.yesterdayAliPaySuccessRate}}<br/>微信：{{statisticalData.yesterdayWxPaySuccessRate}}</div>
                    <div :class="statisticalData.yesterdaySuccessRate > 60 ? 'progre' : 'progre-yes'">
                      <el-progress type="circle" :percentage="statisticalData.yesterdaySuccessRate" :width="80" :color="statisticalData.yesterdaySuccessRate > 60 ?
                          '#00B36B' : 'rgba(255, 130, 0, 1)'">
                      </el-progress>
                    </div>
                  </el-tooltip>

                </div>
              </div>
              <div style="width:100%;height:10%;"></div>
              <div class="statistics">
                <div class="week-flowing">
                  <div style="color: #ADABAB;line-height: 28px;font-size: 20px;">通道预存</div>
                  <div style="color: #333333;line-height: 0px;margin:0.1875rem 0 0.1563rem;display: inline-block;position: relative;" class="fz">{{statisticalData.balance}}</div>
                  <div style="color: #ADABAB;line-height: 20px;font-size: 14px;">当前余额/元</div>
                  <div class="columnChart">
                      <div id="myColumnChart" :style="{width: '100%', height: '100%'}"></div>
                  </div>
                </div>
                <div class="week-flowing">
                  <div style="color: #ADABAB;line-height: 28px;font-size: 20px;">总流水</div>
                  <div style="color: #333333;line-height: 0px;margin:0.1875rem 0 0.1563rem;display: inline-block;position: relative;" class="fz">{{statisticalData.totalIncome}}</div>
                  <div style="color: #ADABAB;line-height: 20px;font-size: 14px;">{{statisticalData.todayTradeNum}}/笔</div>
                </div>
              </div>
        </div>
      </div>
      <div style="width:100%;height:2.7344rem;margin-top:0.1927rem">
        <div style="height:100%;display: flex;justify-content: space-between;">
            <div style="height:100%;width:3.8698rem">
              <div class="boy-foot-left">
                <div style="height:100%;width: 1.8229rem">
                    <div class="deduction">
                      <div class="deduction-top">
                          <span style="font-weight: 600;padding-top:8px;">扣费统计</span>
                          <el-select v-model="value" placeholder="今日" style="width: 94px;height: 36px;border-radius: 6px;">
                              <el-option
                                v-for="item in options"
                                :key="item.day"
                                :label="'周' + (item.week == 1 ? '一' : item.week == 2 ? '二' : item.week == 3 ? '三' : item.week == 4 ? '四' : item.week == 5 ? '五' : item.week == 6 ? '六' : '日')"
                                :value="item.day">
                              </el-option>
                            </el-select>
                      </div>
                      <div class="deduction-top" style="margin-top:0.151rem;padding-bottom:0.099rem;">
                          <span style="color:#ADABAB;">累计扣费</span>
                          <span style="color: #00B36B;font-size:0.1146rem;">{{statisticalData.totalIncome / 100}}</span>
                      </div>
                      <div style="margin-top:0.1302rem;">
                          <div class="deduction-top">
                              <span>手续费扣除</span>
                              <span style="color: #ADABAB;">{{capitalRecordList.fee1}}</span>
                          </div>
                          <div style="font-size: 14px;margin-top:3px;color:#ADABAB;">{{capitalRecordList.createTime1}}</div>
                      </div>
                      <div style="margin-top:0.1302rem;">
                          <div class="deduction-top">
                              <span>手续费扣除</span>
                              <span style="color: #ADABAB;">{{capitalRecordList.fee2}}</span>
                          </div>
                          <div style="font-size: 14px;margin-top:3px;color:#ADABAB;">{{capitalRecordList.createTime2}}</div>
                      </div>
                      <div style="margin-top:0.1302rem;">
                          <div class="deduction-top">
                              <span>手续费扣除</span>
                              <span style="color: #ADABAB;">{{capitalRecordList.fee3}}</span>
                          </div>
                          <div style="font-size: 14px;margin-top:3px;color:#ADABAB;">{{capitalRecordList.createTime3}}</div>
                      </div>
                      <div style="margin-top:0.1302rem;margin-bottom:0.1667rem;">
                          <div class="deduction-top">
                              <span>手续费扣除</span>
                              <span style="color: #ADABAB;">{{capitalRecordList.fee4}}</span>
                          </div>
                          <div style="font-size: 14px;margin-top:3px;color:#ADABAB;">{{capitalRecordList.createTime4}}</div>
                      </div>
                      <div class="see-deduction" @click="handleCapitalRecord">查看更多</div>
                    </div>
                </div>
                <div style="height:100%;width: 1.8229rem">
                    <div class="deduction" style="padding:0.1667rem 0.2396 0 0.1667rem;">
                      <span style="font-size: 0.1042rem;font-weight: 600;">快捷入口</span>
                      <div class="quick" @click="handlePage(1)" style="margin-top:0.151rem">
                          <img src="../assets/images/channel.png" style="width: 47px;height: 47px;" alt="">
                          <div class="quick-right">
                              <div>|</div>
                              <div style="color: #333;">常用通道</div>
                              <i class="el-icon-arrow-right"></i>
                          </div>
                      </div>
                      <div class="quick" @click="handlePage(2)">
                          <img src="../assets/images/account.png" style="width: 47px;height: 47px;" alt="">
                          <div class="quick-right">
                              <div>|</div>
                              <div style="color: #333;">账号管理</div>
                              <i class="el-icon-arrow-right"></i>
                          </div>
                      </div>
                      <div class="quick" @click="handlePage(3)">
                          <img src="../assets/images/trade-list.png" style="width: 47px;height: 47px;" alt="">
                          <div class="quick-right">
                              <div>|</div>
                              <div style="color: #333;">订单管理</div>
                              <i class="el-icon-arrow-right"></i>
                          </div>
                      </div>
                      <div class="quick" @click="handlePage(4)">
                          <img src="../assets/images/trade.png" style="width: 0.2448rem;height: 0.2448rem;" alt="">
                          <div class="quick-right">
                              <div>|</div>
                              <div style="color: #333;">四方流水</div>
                              <i class="el-icon-arrow-right"></i>
                          </div>
                      </div>
                    </div>
                </div>
              </div>
            </div>

            <div style="height:100%;width:3.7865rem;">
               <div class="deduction">
                 <span style="font-size: 0.1042rem;font-weight: 600;">近期公告</span>
                 <div class="notice" style="margin-top:0.1667rem;">
                     <div class="notice-left">
                       <div class="time-week">周{{weekArr[6].week == 1 ? '一' : weekArr[6].week == 2 ? '二' : weekArr[6].week == 3 ? '三' : weekArr[6].week == 4 ? '四' : weekArr[6].week == 5 ? '五' : weekArr[6].week == 6 ? '六' : '日'}}</div>
                       <div class="time-day">{{weekArr[6].day}}</div>
                     </div>
                     <div class="notice-right">
                       <div style="font-weight: 600;color: #333333;margin-bottom:0.0677rem;">通道系统租用说明</div>
                       <span style="color: #717070;">本平台仅提供通道使用，不参与码商及商户交易</span>
                     </div>
                 </div>
                 <div class="notice" style="margin-top:0.2604rem;">
                     <div class="notice-left" style="background:rgba(255, 130, 0, 0.1)">
                       <div class="time-week">周{{weekArr[6].week == 1 ? '一' : weekArr[6].week == 2 ? '二' : weekArr[6].week == 3 ? '三' : weekArr[6].week == 4 ? '四' : weekArr[6].week == 5 ? '五' : weekArr[6].week == 6 ? '六' : '日'}}</div>
                       <div class="time-day">{{weekArr[6].day}}</div>
                     </div>
                     <div class="notice-right">
                       <div style="font-weight: 600;color: #333333;margin-bottom:0.0677rem;">通道系统租用说明</div>
                       <span style="color: #717070;" class="a">本平台仅提供通道使用，不参与码商及商户交易</span>
                     </div>
                 </div>
                 <div class="notice" style="margin-top:0.2604rem;">
                     <div class="notice-left" style="background:rgba(0, 179, 107, 0.1)">
                       <div class="time-week">周{{weekArr[6].week == 1 ? '一' : weekArr[6].week == 2 ? '二' : weekArr[6].week == 3 ? '三' : weekArr[6].week == 4 ? '四' : weekArr[6].week == 5 ? '五' : weekArr[6].week == 6 ? '六' : '日'}}</div>
                       <div class="time-day">{{weekArr[6].day}}</div>
                     </div>
                     <div class="notice-right">
                       <div style="font-weight: 600;color: #333333;margin-bottom:0.0677rem;">通道系统租用说明</div>
                       <span style="color: #717070;">本平台仅提供通道使用，不参与码商及商户交易。本平台仅提供通道使用，不参与码商及商户交易</span>
                     </div>
                 </div>
               </div>
            </div>
        </div>

      </div>
      <!-- <div style="height:34px;background:#F5F6F8;"></div> -->
    </div>

    <div class="minScreen">
      <el-row :gutter="20">
        <el-col :span="24">
          <div class="box-min-card">
            <div style="font-size: 20px;font-weight: 600;">
              <span>数据概述</span>
            </div>
            <div class="time-list">
                <div @click="handleDay(item.day)" class="time-item" :style="weekDay == item.day  ? 'color:rgba(128, 130, 255, 1);background: rgba(128, 130, 255, 0.1);': ''" v-for="(item,index) in minWeekArr" :key="index">
                  <div class="time-week">周{{item.week == 1 ? '一' : item.week == 2 ? '二' : item.week == 3 ? '三' : item.week == 4 ? '四' : item.week == 5 ? '五' : item.week == 6 ? '六' : '日'}}</div>
                  <div class="time-day">{{item.day}}</div>
                </div>
            </div>
            <div class="chart-min">
              <div id="myMinChart" :style="{width: '100%', height: '240px'}"></div>
            </div>

          </div>
        </el-col>
      </el-row>
      <el-row :gutter="20" style="margin-top:20px;">
        <el-col :span="24">
            <div style="width:100%;">
                <div class="statistics">
                  <div class="week-flowing-min">
                    <div style="color: #ADABAB;line-height: 28px;font-size: 16px;">今日流水</div>
                    <div style="color: #333333;margin-top:18px;display: inline-block;position: relative;font-size: 20px;">
                      {{statisticalData.todayIncome}}
                      <!-- <span style="position: absolute;right:0;top:-16px;color: #00B36F;font-size: 8px;">+4.12%</span> -->
                    </div>
                    <div style="color: #ADABAB;font-size: 8px;">{{statisticalData.todayTradeNum}}/笔</div>
                    <div :class="statisticalData.todaySuccessRate > 60 ? 'progre-min' : 'progre-yes-min'">
                      <el-progress type="circle" :percentage="statisticalData.todaySuccessRate" :width="60" :color="statisticalData.todaySuccessRate > 60 ?
                          '#00B36B' : 'rgba(255, 130, 0, 1)'">
                      </el-progress>
                    </div>
                  </div>
                  <div class="week-flowing-min">
                    <div style="color: #ADABAB;line-height: 28px;font-size: 16px;">昨日流水</div>
                    <div style="color: #333333;margin-top:18px;display: inline-block;position: relative;font-size: 20px;">
                      {{statisticalData.yesterdayIncome}}
                      <!-- <span style="position: absolute;right:0;top:-16px;color: #FD2A2A;font-size: 8px;">+4.12%</span> -->
                    </div>
                    <div style="color: #ADABAB;font-size: 8px;">{{statisticalData.yesterdayTradeNum}}/笔</div>
                    <div :class="statisticalData.yesterdaySuccessRate > 60 ? 'progre-min' : 'progre-yes-min'">
                      <el-progress type="circle" :percentage="statisticalData.yesterdaySuccessRate" :width="60" :color="statisticalData.yesterdaySuccessRate > 60 ?
                          '#00B36B' : 'rgba(255, 130, 0, 1)'">
                      </el-progress>
                    </div>
                  </div>
                </div>
                <div class="statistics" style="margin-top:20px;">
                  <div class="week-flowing-min">
                    <div style="color: #ADABAB;line-height: 28px;font-size: 16px;">通道预存</div>
                    <div style="color: #333333;margin-top:18px;display: inline-block;position: relative;font-size: 20px;">{{statisticalData.balance}}</div>
                    <div style="color: #ADABAB;font-size: 8px;">当前余额/元</div>
                    <div class="columnMinChart">
                        <div id="myMimColumnChart" :style="{width: '100%', height: '100%'}"></div>
                    </div>
                  </div>
                  <div class="week-flowing-min">
                    <div style="color: #ADABAB;line-height: 28px;font-size: 20px;">总流水</div>
                    <div style="color: #333333;margin-top:18px;display: inline-block;position: relative;font-size: 20px;">{{statisticalData.totalIncome}}</div>
                    <div style="color: #ADABAB;font-size: 8px;">237658/笔</div>
                  </div>
                </div>
            </div>
          </el-col>
      </el-row>
      <el-row :gutter="20" style="margin-top:20px;">
        <el-col :span="24">
               <div class="deduction-min">
                 <div class="deduction-top-min">
                    <span style="font-weight: 600;">扣费统计</span>
                    <el-select v-model="value" placeholder="今日" style="width: 94px;height: 36px;border-radius: 6px;">
                        <el-option
                          v-for="item in weekArr"
                          :key="item.day"
                          :label="'周' + (item.week == 1 ? '一' : item.week == 2 ? '二' : item.week == 3 ? '三' : item.week == 4 ? '四' : item.week == 5 ? '五' : item.week == 6 ? '六' : '日')"
                          :value="item.day">
                        </el-option>
                      </el-select>
                 </div>
                 <div class="deduction-top-min" style="margin-top:29px;padding-bottom:19px;">
                    <span style="color:#ADABAB;">累计扣费</span>
                    <span style="color: #00B36B;">{{statisticalData.totalIncome / 100}}</span>
                 </div>
                 <div style="margin-top:25px;">
                    <div class="deduction-top-min">
                        <span>手续费扣除</span>
                        <span style="color: #ADABAB;">{{capitalRecordList.fee1}}</span>
                    </div>
                    <div style="font-size: 14px;margin-top:3px;color:#ADABAB;">{{capitalRecordList.createTime1}}</div>
                 </div>
                 <div style="margin-top:25px;">
                    <div class="deduction-top-min">
                        <span>手续费扣除</span>
                        <span style="color: #ADABAB;">{{capitalRecordList.fee2}}</span>
                    </div>
                    <div style="font-size: 14px;margin-top:3px;color:#ADABAB;">{{capitalRecordList.createTime2}}</div>
                 </div>
                 <div style="margin-top:25px;">
                    <div class="deduction-top-min">
                        <span>手续费扣除</span>
                        <span style="color: #ADABAB;">{{capitalRecordList.fee3}}</span>
                    </div>
                    <div style="font-size: 14px;margin-top:3px;color:#ADABAB;">{{capitalRecordList.createTime3}}</div>
                 </div>
                 <div style="margin-top:25px;">
                    <div class="deduction-top-min">
                        <span>手续费扣除</span>
                        <span style="color: #ADABAB;">{{capitalRecordList.fee4}}</span>
                    </div>
                    <div style="font-size: 14px;margin-top:3px;color:#ADABAB;">{{capitalRecordList.createTime4}}</div>
                 </div>
                 <div class="see-deduction-min" @click="handleCapitalRecord">查看更多</div>
               </div>
            </el-col>
      </el-row>
      <el-row :gutter="20" style="margin-top:20px;">
        <el-col :span="24">
            <div class="deduction-min">
              <span style="font-size: 20px;font-weight: 600;">快捷入口</span>
              <div class="quick" style="margin-top:29px;" @click="handlePage(1)">
                <img src="../assets/images/channel.png" style="width: 47px;height: 47px;" alt="">
                <div class="quick-right-min">
                    <div>|</div>
                    <div style="color: #333;">常用通道</div>
                    <i class="el-icon-arrow-right"></i>
                </div>
              </div>
              <div class="quick" style="margin-top:58px;" @click="handlePage(2)">
                <img src="../assets/images/account.png" style="width: 47px;height: 47px;" alt="">
                <div class="quick-right-min">
                    <div>|</div>
                    <div style="color: #333;">账号管理</div>
                    <i class="el-icon-arrow-right"></i>
                </div>
              </div>
              <div class="quick" style="margin-top:58px;" @click="handlePage(3)">
                <img src="../assets/images/trade-list.png" style="width: 47px;height: 47px;" alt="">
                <div class="quick-right-min">
                    <div>|</div>
                    <div style="color: #333;">订单管理</div>
                    <i class="el-icon-arrow-right"></i>
                </div>
              </div>
              <div class="quick" style="margin-top:58px;" @click="handlePage(4)">
                <img src="../assets/images/trade.png" style="width: 47px;height: 47px;" alt="">
                <div class="quick-right-min">
                    <div>|</div>
                    <div style="color: #333;">四方流水</div>
                    <i class="el-icon-arrow-right"></i>
                </div>
              </div>
            </div>
        </el-col>
      </el-row>
      <el-row :gutter="20" style="margin-top:20px;">
        <el-col :span="24">
            <div class="deduction-min">
                 <span style="font-size: 20px;font-weight: 600;">近期公告</span>
                 <div class="notice" style="margin-top:20px">
                     <div class="notice-left">
                       <div class="time-week">周{{weekArr[6].week == 1 ? '一' : weekArr[6].week == 2 ? '二' : weekArr[6].week == 3 ? '三' : weekArr[6].week == 4 ? '四' : weekArr[6].week == 5 ? '五' : weekArr[6].week == 6 ? '六' : '日'}}</div>
                       <div class="time-day">{{weekArr[6].day}}</div>
                     </div>
                     <div class="notice-right-min">
                       <div style="font-weight: 600;color: #333333;margin-bottom:13px;">通道系统租用说明</div>
                       <span style="color: #717070;">本平台仅提供通道使用，不参与码商及商户交易</span>
                     </div>
                 </div>
                 <div class="notice" style="margin-top:50px;">
                     <div class="notice-left" style="background:rgba(255, 130, 0, 0.1)">
                       <div class="time-week">周{{weekArr[6].week == 1 ? '一' : weekArr[6].week == 2 ? '二' : weekArr[6].week == 3 ? '三' : weekArr[6].week == 4 ? '四' : weekArr[6].week == 5 ? '五' : weekArr[6].week == 6 ? '六' : '日'}}</div>
                       <div class="time-day">{{weekArr[6].day}}</div>
                     </div>
                     <div class="notice-right-min">
                       <div style="font-weight: 600;color: #333333;margin-bottom:13px;">通道系统租用说明</div>
                       <span style="color: #717070;">本平台仅提供通道使用，不参与码商及商户交易</span>
                     </div>
                 </div>
                 <div class="notice" style="margin-top:42px;">
                     <div class="notice-left" style="background:rgba(0, 179, 107, 0.1)">
                       <div class="time-week">周{{weekArr[6].week == 1 ? '一' : weekArr[6].week == 2 ? '二' : weekArr[6].week == 3 ? '三' : weekArr[6].week == 4 ? '四' : weekArr[6].week == 5 ? '五' : weekArr[6].week == 6 ? '六' : '日'}}</div>
                       <div class="time-day">{{weekArr[6].day}}</div>
                     </div>
                     <div class="notice-right-min">
                       <div style="font-weight: 600;color: #333333;margin-bottom:13px;">通道系统租用说明</div>
                       <span style="color: #717070;">本平台仅提供通道使用，不参与码商及商户交易。本平台仅提供通道使用，不参与码商及商户交易</span>
                     </div>
                 </div>
               </div>
        </el-col>
      </el-row>
    </div>
    <div>

    </div>
  </div>
</template>

<script>
  import {
    initIndexData
  } from "@/api/merchant/index";
  import {
    listCapitalRecord
  } from "@/api/merchant/capitalRecord";
  import { formatTime } from '@/utils';
  import { mapGetters } from 'vuex'
  export default {
    name: "Index",
    computed: {
      ...mapGetters([
        'sidebar'
      ])
    },
    data() {
      return {
        //统计的数据
        statisticalData: {},
        effectState:true,
        //日期
        weekArr:[],
        minWeekArr:[{week:'',day:''},{week:'',day:''},{week:'',day:''}],
        weekDay:'',
        week:'',
        options: [{
          day: '',
          week: ''
        }, {
          day: '',
          week: ''
        }],
        value: '',
        capitalRecordList:{
          fee1:'',
          fee2:'',
          fee3:'',
          createTime1:'',
          createTime2:'',
          createTime3:''
        },
        cssWidth:document.documentElement.clientWidth,
        cssHeight:document.documentElement.clientHeight,
        dateStr: formatTime(new Date().getTime(), 'Y-M-D')
      };
    },
    created() {
      this.initData();
      this.makeDate()
    },
    methods: {
      goTarget(href) {
        window.open(href, "_blank");
      },
      //初始化数据
      initData() {
        initIndexData(this.dateStr).then(response => {
          response.data.yesterdaySuccessRate = Number(response.data.yesterdaySuccessRate)
          response.data.yesterdayDeduction = Number(response.data.yesterdayDeduction)
          response.data.todaySuccessRate = Number(response.data.todaySuccessRate)
          response.data.wxPaySuccessRate = Number(response.data.wxPaySuccessRate)
          response.data.aliPaySuccessRate = Number(response.data.aliPaySuccessRate)
          this.statisticalData = response.data;
          this.drawLine();
        });
        listCapitalRecord({
          pageNum: 1,
          pageSize: 10,
          type: 2
          }).then(response => {
          // this.capitalRecordList = response.rows;
          this.capitalRecordList.fee1=response.rows[0].fee,
          this.capitalRecordList.fee2=response.rows[1].fee,
          this.capitalRecordList.fee3=response.rows[2].fee,
          this.capitalRecordList.fee4=response.rows[3].fee,
          this.capitalRecordList.createTime1=response.rows[0].createTime,
          this.capitalRecordList.createTime2=response.rows[1].createTime,
          this.capitalRecordList.createTime3=response.rows[2].createTime,
          this.capitalRecordList.createTime4=response.rows[3].createTime
        });
      },
      drawLine() {
        var that = this
        // 基于准备好的dom，初始化echarts实例myChartTow
        let myChart = this.$echarts.init(document.getElementById('myChart'))
        let myColumnChart = this.$echarts.init(document.getElementById('myColumnChart'))
        let myMinChart = this.$echarts.init(document.getElementById('myMinChart'))
        let myMimColumnChart = this.$echarts.init(document.getElementById('myMimColumnChart'))
        // 绘制图表
        myChart.setOption({
          color: 'rgba(128, 130, 255, 0.64)',
          xAxis: {
            type: 'category',
            boundaryGap: false,
            data: ['00', '01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12', '13', '14', '15',
              '16', '17', '18', '19', '20', '21', '22', '23'
            ]
          },
          yAxis: {
            type: 'value'
          },
          series: [{
            data: this.statisticalData.incomeMonitor ,
            type: 'line',
            smooth: true,
            areaStyle: {},
          }],
          tooltip : {
            trigger: 'axis'
          }
        });
        myColumnChart.setOption({
          xAxis: {
            type: 'category',
            data: [],
            show: false,
            splitLine:{
                show:false
            }
          },
          yAxis: {
            type: 'value',
            show: false,
            splitLine:{
                show:false
            }
          },
          series: [
            {
              data: [1289700, 3689200, 1938750],
              type: 'bar',
              barWidth :7,//柱图宽度
              barCategoryGap:'20%',
              itemStyle: {    // 图形的形状
                normal:{
                    barBorderRadius: 4,
                    color:function(params){
                        var colorlist = ['#EDEDED','#EDEDED','#00B36B'];
                        return colorlist[params.dataIndex];
                    }
                }
              },
            },
          ],
          tooltip: {
              formatter: function (params) {
                  // console.log(params); // 当我们想要自定义提示框内容时，可以先将鼠标悬浮的数据打印出来，然后根据需求提取出来即可
                  let firstParams = params[0];
                  let sndParams = params[1];
                  return  '12月15日' + '<br>' + '+1600.35'
                  // + firstParams.data + ' 亿千瓦<br>增长率：' + sndParams.data +' %';
              }
          },
        });
        myMinChart.setOption({
          color: 'rgba(128, 130, 255, 0.64)',
          xAxis: {
            type: 'category',
            boundaryGap: false,
            data: ['00', '01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12', '13', '14', '15',
              '16', '17', '18', '19', '20', '21', '22', '23'
            ]
          },
          yAxis: {
            type: 'value'
          },
          grid: {
            containLabel: true //防止遮挡
          },
          series: [{
            data: this.statisticalData.incomeMonitor ,
            type: 'line',
            smooth: true,
            areaStyle: {},
          }],
          tooltip : {
            trigger: 'axis'
          }
        });
        myMimColumnChart.setOption({
          xAxis: {
            type: 'category',
            data: [],
            show: false,
            splitLine:{
                show:false
            }
          },
          yAxis: {
            type: 'value',
            show: false,
            splitLine:{
                show:false
            }
          },
          series: [
            {
              data: [1289700, 3689200, 1938750],
              type: 'bar',
              barWidth :7,//柱图宽度
              barCategoryGap:'20%',
              itemStyle: {    // 图形的形状
                normal:{
                    barBorderRadius: 4,
                    color:function(params){
                        var colorlist = ['#EDEDED','#EDEDED','#00B36B'];
                        return colorlist[params.dataIndex];
                    }
                }
              },
            },
          ],
          tooltip: {
              formatter: function (params) {
                  // console.log(params); // 当我们想要自定义提示框内容时，可以先将鼠标悬浮的数据打印出来，然后根据需求提取出来即可
                  let firstParams = params[0];
                  let sndParams = params[1];
                  return  '12月15日' + '<br>' + '+1600.35'
                  // + firstParams.data + ' 亿千瓦<br>增长率：' + sndParams.data +' %';
              }
          },
        });
      },
      handleCapitalRecord(){
         this.$router.push({path:'/capitalRecord/list',query: {value:'2'}})
      },
      handelffect(){
        this.effectState = !this.effectState
        this.drawLine()
      },
      handleDay(day){
         this.weekDay = day
      },
      handlePage(e){
         if (e == 1) {
           this.$router.push({path:'/channel/list'})
         }else if(e == 2){
           this.$router.push({path:'/account/list'})
         }else if(e == 3){
           this.$router.push({path:'/trade/list'})
         }else if(e == 4){
           this.$router.push({path:'/trade/group'})
         }
      },
      makeDate() {
          var date = new Date();
          var month = date.getMonth();
          var week = date.getDay();
          var month = month + 1;
          var day = date.getDate();
          var timeDay = date.getTime()
          // console.log(timeDay.getDate());
          // week：周几，day：几号
          var weekArr = [{week:'',day:''},{week:'',day:''},{week:'',day:''},{week:'',day:''},{week:'',day:''},{week:'',day:''},{week:'',day:''}];
          // 本周内今天的前几天的数量
          var leftNum = 6;
          // 本周内今天的前几天
          for(var i=0; i<leftNum; i++){
              weekArr[i].week = Math.abs(week + (1+i) < 7 ? week + (1+i) : week + (1+i) - 7);
              weekArr[i].day = new Date(timeDay-(6-i)*1000*60*60*24).getDate();
          }
          this.options[0].week =week
          this.options[0].day =day
          this.options[1].week =weekArr[5].week
          this.options[1].day =weekArr[5].day

          this.minWeekArr[0].week =weekArr[4].week
          this.minWeekArr[0].day =weekArr[4].day
          this.minWeekArr[1].week =weekArr[5].week
          this.minWeekArr[1].day =weekArr[5].day
          this.minWeekArr[2].week =week
          this.minWeekArr[2].day =day
          // 今天
          weekArr[6].week = week;
          weekArr[6].day = day;
          this.weekArr = weekArr
          this.weekDay = day
          this.week = week
      }
    },
  };

</script>

<style scoped lang="scss">
@media screen and (max-width:1650px){
.fz{
   font-size: 30px;
 }
 .columnChart{
   right: 5px;
 }
}
@media screen and (min-width:1650px){
 .fz{
   font-size: 40px;
 }
 .columnChart{
   right: 35px;
 }
}
@media screen and (max-width:1000px){
 .screen {
   display:none;
  }
}
@media screen and (min-width:1000px){
 .minScreen {
   display:none;
  }
}
.progre ::v-deep .el-progress__text{
  font-size: 20px !important;
  color: #00B36B;
}
.progre-min ::v-deep .el-progress__text{
  color: #00B36B;
}
.progre-yes ::v-deep .el-progress__text{
  font-size: 20px !important;
  color: rgba(255, 129, 0, 1);
}
.progre-yes-min ::v-deep .el-progress__text{
  color: rgba(255, 129, 0, 1);
}
.app-wrapper{
  overflow: hidden;
}
  .home {
    background-color: #F5F6F8;
  }
  .screen{
    // width: 8.2292rem;
    margin: 0 auto;
    padding: .1771rem;
  }
  .box-card {
    width: 3.8698rem;
    height: 1.8438rem;
    box-shadow: 0px 2px 22px 0px rgba(0, 0, 0, 0.03);
    border-radius: 14px;
    background-color: #fff;
    padding-left: 0.1354rem;
    padding-top: 0.1771rem;
    padding-right: 0.25rem;
    box-sizing: border-box;
    position: relative;
  }
  .time-list{
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: .0521rem;
  }
  .time-item{
    width: 49px;
    height: 77px;
    border-radius: 25px;
    text-align: center;
    font-size: 16px;
    color: #ADABAB;
    padding-top: 18px;
    box-sizing: border-box;
    line-height: 18px;
    cursor: pointer;
  }
  .time-week{
    margin-bottom: 13px;
  }
  .chart{
    width: 100%;
    height: 1.25rem;
    position: absolute;
    top: .625rem;
    left: .026rem;
  }
  .statistics{
    width: 100%;
    height: 45%;
    display: flex;
    justify-content: space-between;
  }
  .week-flowing{
    width: 1.8281rem;
    height: .8438rem;
    background: #FFFFFF;
    padding: .1354rem 0 .0938rem .1615rem;
    box-shadow: 0px 2px 22px 0px rgba(0, 0, 0, 0.03);
    border-radius: 14px;
    box-sizing: border-box;
    position: relative;
  }
  .progre,.progre-yes{
    width: 80px;
    height: 80px;
    position: absolute;
    top: .2135rem;
    right: .2344rem;
  }
  .columnChart{
    width: 100px;
    height: 180px;
    position: absolute;
    bottom: -23px;
  }
  .deduction{
    width: 100%;
    height: 100%;
    background: #FFFFFF;
    box-shadow: 0px 2px 22px 0px rgba(0, 0, 0, 0.03);
    border-radius: 14px;
    padding: .125rem .1354rem .1094rem;
  }
  .deduction-top{
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size:0.1042rem;
  }
  .see-deduction{
    width: 100%;
    height: 0.2083rem;
    background: #FFFFFF;
    border-radius: 9px;
    border: 1px solid #8385FF;
    color: #8082FF;
    font-size: .0833rem;
    text-align: center;
    line-height: .2083rem;
    box-sizing: border-box;
    cursor: pointer;
  }
  .notice{
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
  }
  .notice-left{
    width: 49px;
    height: 77px;
    background: rgba(128, 130, 255, 0.1);
    border-radius: 16px;
    text-align: center;
    padding-top: 18px;
    box-sizing: border-box;
    color: #8082FF;
    font-size: 16px;
    line-height: 18px;
    margin-right: 37px;
  }
  .notice-right{
    width: 3.1094rem;
    padding-top: .026rem;
    line-height: .1458rem;
    font-size: .1042rem;
  }
  .quick{
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    margin-bottom: .3021rem;
  }
  .quick-right{
    width: 68%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .1042rem;
    color: #979797;
  }
  .boy-foot-left{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
  }



  .minScreen{
    padding: 10px;
  }
  .box-min-card{
    width: 100%;
    height: 320px;
    border-radius: 14px;
    background-color: #fff;
    padding-left: 10px;
    padding-top: 10px;
    padding-right: 10px;
    box-sizing: border-box;
    position: relative;
  }
  .chart-min{
    width: 100%;
    height: 100%;
  }
  .week-flowing-min{
    width: 48%;
    height: 115px;
    background: #FFFFFF;
    border-radius: 14px;
    padding: 10px;
    box-sizing: border-box;
    position: relative;
  }
  .progre-min,.progre-yes-min{
    width: 80px;
    height: 80px;
    position: absolute;
    top: 20px;
    right: -10px;
  }
  .columnMinChart{
    width: 50px;
    height: 90px;
    position: absolute;
    bottom: 10px;
    right: 10px;
  }
  .notice-right-min{
    width: 82%;
    padding-top: 5px;
    font-size: 14px;
  }
  .deduction-min{
    width: 100%;
    height: 100%;
    background: #fff;
    -webkit-box-shadow: 0 2px 22px 0 rgba(0, 0, 0, 3%);
    box-shadow: 0 2px 22px 0 rgba(0, 0, 0, 3%);
    border-radius: 14px;
    padding: 24px 26px 21px;
  }
  .deduction-top-min{
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 20px;
  }
  .see-deduction-min{
    width: 100%;
    height: 40px;
    background: #fff;
    border-radius: 9px;
    border: 1px solid #8385ff;
    color: #8082ff;
    font-size: 16px;
    text-align: center;
    line-height: 40px;
    box-sizing: border-box;
    margin-top: 25px;
  }
  .quick-right-min{
    width: 68%;
    font-size: 20px;
    color: #979797;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
</style>
